import React, { useState } from "react";
import { UseSelector } from "react-redux";


function Profile() {
  const user = UseSelector((state) => state.auth.user);
    return (
        <div>
          <h3>当前登录用户</h3>
          <p>用户名：{user.username}</p>
        </div>
      );
}

export default Profile;